package com.cn.wanxi.dao;

import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.PageModel;

import java.util.List;

public interface NewsDao {
    int add(NewsModel newsModel);

    List<NewsModel> findAll(NewsModel newsModel, PageModel pageModel);

    Integer getCount(NewsModel newsModel);

    List<NewsModel> getList();
}
